package com.demo.objectProvider.config;

import com.demo.objectProvider.pojo.Dog;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 用来创建 Bean
 * */
@Configuration
public class BeansConfig {

    @Bean
    public Dog dog(){
        return new Dog("wpz", "pink", 21);
    }

    @Bean
    public Dog dog1(){
        return new Dog("pz", "blue", 30);
    }
}
